<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<header th:fragment="header">
    <div class="logo">Java知识分享网</div>
    <div class="top-nav">
        <h2 id="mnavh"><span class="navicon"></span></h2>
        <ul id="nav">
            <li><a href="/index">网站首页</a></li>
            <li><a href="/study_way">Java学习路线</a></li>
            <li><a href="/video_share">Java知识分享</a></li>
            <li><a href="/book_share">Java书籍推荐</a></li>
            <li><a href="/share">Java资源分享</a></li>
            <li><a href="/about">关于</a></li>
        </ul>
    </div>
    <div class="search">
        <form  name="searchform" id="searchform">
            <input name="keyboard" id="keyboard" class="input_text" value="搜索你喜欢的" style="color: rgb(153, 153, 153);" onfocus="if(value=='搜索你喜欢的'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='搜索你喜欢的'}" type="text">
            <input id="searchbtn" class="input_submit" value="" type="button">
        </form>
    </div>
</header>
</body>
<script>
    $(window).on('load', () => {
    $('#searchbtn').on('click',function () {
        getInfoToPage();
        });
    });
</script>
</html>